<div class="box">
	
	<h1 class="green">
		<img src="uploads/icon/head/tab.png" />
		<span>ผลการค้นหา</span>
		<div class="corner_left"></div>
		<div class="corner_right"></div>
	</h1>
	
<div class="detail">
	<ul class="list">
		<?php foreach($contents as $content): ?>
		<li>
			<?php if($content->url): ?>
			<a target="_blank" href="<?php echo $content->url ?>">
			<?php else: ?>
			<a href="contents/view/<?php echo $content->id ?>">
			<?php endif; ?>
				<?php echo $content->title ?> <?php echo ($content->file)?icon_file($content->file):'' ?>
			 	- <span><?php echo mysql_to_th(($content->start_date)?$content->start_date:$content->created) ?></span>
			</a>
		</li>
		<?php endforeach; ?>
	</ul>
	<?php echo $contents->pagination()?>
</div>


</div>